import { Component } from 'react'
import axios from 'axios'
axios.defaults.baseURL = "/api"
axios.interceptors.response.use(response => {
    return response.data
})
Component.prototype.$http = axios
export default axios